package com.dianping.cat.core.dal;

import java.util.Date;
import org.unidal.dal.jdbc.DataObject;



















public class HourlyReport
  extends DataObject
{
  private int m_id;
  private int m_type;
  private String m_name;
  private String m_ip;
  private String m_domain;
  private Date m_period;
  private Date m_creationDate;
  private int m_keyId;
  private Date m_startDate;
  private Date m_endDate;

  public void afterLoad() {
/*  39 */     this.m_keyId = this.m_id;
/*  40 */     clearUsage();
  }


/*  44 */   public Date getCreationDate() { return this.m_creationDate; }



/*  48 */   public String getDomain() { return this.m_domain; }



/*  52 */   public Date getEndDate() { return this.m_endDate; }



/*  56 */   public int getId() { return this.m_id; }



/*  60 */   public String getIp() { return this.m_ip; }



/*  64 */   public int getKeyId() { return this.m_keyId; }



/*  68 */   public String getName() { return this.m_name; }



/*  72 */   public Date getPeriod() { return this.m_period; }



/*  76 */   public Date getStartDate() { return this.m_startDate; }



/*  80 */   public int getType() { return this.m_type; }


  public HourlyReport setCreationDate(Date creationDate) {
/*  84 */     setFieldUsed(HourlyReportEntity.CREATION_DATE, true);
/*  85 */     this.m_creationDate = creationDate;
/*  86 */     return this;
  }

  public HourlyReport setDomain(String domain) {
/*  90 */     setFieldUsed(HourlyReportEntity.DOMAIN, true);
/*  91 */     this.m_domain = domain;
/*  92 */     return this;
  }

  public HourlyReport setEndDate(Date endDate) {
/*  96 */     setFieldUsed(HourlyReportEntity.END_DATE, true);
/*  97 */     this.m_endDate = endDate;
/*  98 */     return this;
  }

  public HourlyReport setId(int id) {
/* 102 */     setFieldUsed(HourlyReportEntity.ID, true);
/* 103 */     this.m_id = id;

/* 105 */     setFieldUsed(HourlyReportEntity.KEY_ID, true);
/* 106 */     this.m_keyId = id;
/* 107 */     return this;
  }

  public HourlyReport setIp(String ip) {
/* 111 */     setFieldUsed(HourlyReportEntity.IP, true);
/* 112 */     this.m_ip = ip;
/* 113 */     return this;
  }

  public HourlyReport setKeyId(int keyId) {
/* 117 */     setFieldUsed(HourlyReportEntity.KEY_ID, true);
/* 118 */     this.m_keyId = keyId;
/* 119 */     return this;
  }

  public HourlyReport setName(String name) {
/* 123 */     setFieldUsed(HourlyReportEntity.NAME, true);
/* 124 */     this.m_name = name;
/* 125 */     return this;
  }

  public HourlyReport setPeriod(Date period) {
/* 129 */     setFieldUsed(HourlyReportEntity.PERIOD, true);
/* 130 */     this.m_period = period;
/* 131 */     return this;
  }

  public HourlyReport setStartDate(Date startDate) {
/* 135 */     setFieldUsed(HourlyReportEntity.START_DATE, true);
/* 136 */     this.m_startDate = startDate;
/* 137 */     return this;
  }

  public HourlyReport setType(int type) {
/* 141 */     setFieldUsed(HourlyReportEntity.TYPE, true);
/* 142 */     this.m_type = type;
/* 143 */     return this;
  }


  public String toString() {
/* 148 */     StringBuilder sb = new StringBuilder(1024);

/* 150 */     sb.append("HourlyReport[");
/* 151 */     sb.append("creation-date: ").append(this.m_creationDate);
/* 152 */     sb.append(", domain: ").append(this.m_domain);
/* 153 */     sb.append(", end-date: ").append(this.m_endDate);
/* 154 */     sb.append(", id: ").append(this.m_id);
/* 155 */     sb.append(", ip: ").append(this.m_ip);
/* 156 */     sb.append(", key-id: ").append(this.m_keyId);
/* 157 */     sb.append(", name: ").append(this.m_name);
/* 158 */     sb.append(", period: ").append(this.m_period);
/* 159 */     sb.append(", start-date: ").append(this.m_startDate);
/* 160 */     sb.append(", type: ").append(this.m_type);
/* 161 */     sb.append("]");
/* 162 */     return sb.toString();
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-core-3.0.0.jar!/com/dianping/cat/core/dal/HourlyReport.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */